package com.finger.eduservice.controller.message;

import com.finger.commonutils.R;
import com.finger.eduservice.service.EduMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/eduservice/msg")
public class MessageController {

    @Autowired
    private EduMessageService eduMessageService;

    @GetMapping("/send/{phone}")
    public R sendMessage(@PathVariable String phone){

        R result = eduMessageService.sendMessage(phone);

        return result;
    }


}
